package day06.test4;

import java.util.Arrays;
import java.util.Random;

public class test4 {
    public static void main(String[] args) {
        int z = test4.max(100, 200);
        System.out.println(z);

        int[] arr1 = test4.randArray();
        System.out.println(Arrays.toString(arr1));
    }
    public static void hi2()
    {
        System.out.println("hh");
    }
    public static int max(int x,int y)
    {

        return x>y? x:y;
    }
    public static int[] randArray()
    {
        //数组
        int[] arr = new int[10];

        //随机
        Random ran = new Random();
        //赋值
        for(int i =0;i<10;i++)
        {
            arr[i] = ran.nextInt(101);
        }
        return arr;
    }
}
